<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Members | $rxTools</title>
    <meta name="description" content="校管家前端团队工具库">
    <script src="/tools/rx.tools.js"></script>
    
    <link rel="preload" href="/tools/assets/css/styles.a1269b41.css" as="style"><link rel="preload" href="/tools/assets/js/app.a1269b41.js" as="script"><link rel="preload" href="/tools/assets/js/10.7f3024d4.js" as="script"><link rel="prefetch" href="/tools/assets/js/4.b52bbfe2.js"><link rel="prefetch" href="/tools/assets/css/1.styles.5a8ea794.css"><link rel="prefetch" href="/tools/assets/js/1.5a8ea794.js"><link rel="prefetch" href="/tools/assets/css/2.styles.35543169.css"><link rel="prefetch" href="/tools/assets/js/2.35543169.js"><link rel="prefetch" href="/tools/assets/js/3.15e12b4b.js"><link rel="prefetch" href="/tools/assets/js/5.39105aa8.js"><link rel="prefetch" href="/tools/assets/js/6.27ca699b.js"><link rel="prefetch" href="/tools/assets/js/7.86895104.js"><link rel="prefetch" href="/tools/assets/js/8.d01f9c0e.js"><link rel="prefetch" href="/tools/assets/js/9.5494f412.js"><link rel="prefetch" href="/tools/assets/js/11.6790e062.js">
    <link rel="stylesheet" href="/tools/assets/css/1.styles.5a8ea794.css"><link rel="stylesheet" href="/tools/assets/css/2.styles.35543169.css"><link rel="stylesheet" href="/tools/assets/css/styles.a1269b41.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/tools/" class="home-link router-link-active"><!----> <span class="site-name">$rxTools</span></a> <div class="links" style="max-width:nullpx;"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <!----></div></header> <div class="sidebar-mask"></div> <div class="sidebar"><!---->  <ul class="sidebar-links"><li><div class="sidebar-group first"><p class="sidebar-heading"><span>浏览器环境</span> <!----></p> <ul class="sidebar-group-items"><li><a href="/tools/brower/env.html" class="sidebar-link">环境变量</a></li><li><a href="/tools/brower/event.html" class="sidebar-link">事件处理</a></li><li><a href="/tools/brower/element.html" class="sidebar-link">元素相关</a></li></ul></div></li><li><div class="sidebar-group"><p class="sidebar-heading open"><span>javascript 工具</span> <!----></p> <ul class="sidebar-group-items"><li><a href="/tools/ext/array.html" class="sidebar-link">数组</a></li><li><a href="/tools/ext/date.html" class="sidebar-link">日期</a></li><li><a href="/tools/ext/number.html" class="active sidebar-link">数值</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/tools/ext/number.html#members" class="sidebar-link">Members</a></li><li class="sidebar-sub-header"><a href="/tools/ext/number.html#tofixed-⇒-string" class="sidebar-link">_toFixed ⇒</a></li><li class="sidebar-sub-header"><a href="/tools/ext/number.html#tofixed-⇒-string-2" class="sidebar-link">toFixed ⇒</a></li><li class="sidebar-sub-header"><a href="/tools/ext/number.html#plus-⇒-number" class="sidebar-link">plus ⇒</a></li><li class="sidebar-sub-header"><a href="/tools/ext/number.html#minus-⇒-number" class="sidebar-link">minus ⇒</a></li><li class="sidebar-sub-header"><a href="/tools/ext/number.html#mul-⇒-number" class="sidebar-link">mul ⇒</a></li><li class="sidebar-sub-header"><a href="/tools/ext/number.html#div-⇒-number" class="sidebar-link">div ⇒</a></li><li class="sidebar-sub-header"><a href="/tools/ext/number.html#askyu-⇒-number" class="sidebar-link">askYu ⇒</a></li></ul></li><li><a href="/tools/ext/object.html" class="sidebar-link">对象</a></li><li><a href="/tools/common.html" class="sidebar-link">其他</a></li></ul></div></li></ul> </div> <div class="page"> <div class="content"><p>#Number</p> <h2 id="members"><a href="#members" aria-hidden="true" class="header-anchor">#</a> Members</h2> <dl><dt><a href="#_toFixed">_toFixed</a> ⇒ <code>String</code></dt> <dd><p>原生的toFixed</p></dd> <dt><a href="#toFixed">toFixed</a> ⇒ <code>String</code></dt> <dd><p>采用银行算法的toFixed，四舍六入五成双（为5时，检查前面一位是否为偶数）</p></dd> <dt><a href="#plus">plus</a> ⇒ <code>Number</code></dt> <dd><p>加</p></dd> <dt><a href="#minus">minus</a> ⇒ <code>Number</code></dt> <dd><p>减</p></dd> <dt><a href="#mul">mul</a> ⇒ <code>Number</code></dt> <dd><p>乘</p></dd> <dt><a href="#div">div</a> ⇒ <code>Number</code></dt> <dd><p>除</p></dd> <dt><a href="#askYu">askYu</a> ⇒ <code>Number</code></dt> <dd><p>取余</p></dd></dl> <p><a name="_toFixed"></a></p> <h2 id="tofixed-⇒-string"><a href="#tofixed-⇒-string" aria-hidden="true" class="header-anchor">#</a> _toFixed ⇒ <code>String</code></h2> <p>原生的toFixed</p> <p><strong>Kind</strong>: global variable</p> <table><thead><tr><th>Param</th> <th>Type</th></tr></thead> <tbody><tr><td>小数位</td> <td><code>d</code></td></tr></tbody></table> <p><a name="toFixed"></a></p> <h2 id="tofixed-⇒-string-2"><a href="#tofixed-⇒-string-2" aria-hidden="true" class="header-anchor">#</a> toFixed ⇒ <code>String</code></h2> <p>采用银行算法的toFixed，四舍六入五成双（为5时，检查前面一位是否为偶数）</p> <p><strong>Kind</strong>: global variable</p> <table><thead><tr><th>Param</th> <th>Type</th></tr></thead> <tbody><tr><td>小数位</td> <td><code>d</code></td></tr></tbody></table> <p><a name="plus"></a></p> <h2 id="plus-⇒-number"><a href="#plus-⇒-number" aria-hidden="true" class="header-anchor">#</a> plus ⇒ <code>Number</code></h2> <p>加</p> <p><strong>Kind</strong>: global variable</p> <table><thead><tr><th>Param</th> <th>Type</th> <th>Description</th></tr></thead> <tbody><tr><td>num</td> <td><code>Number</code> | <code>String</code></td> <td></td></tr> <tr><td>d</td> <td><code>Number</code></td> <td>小数位</td></tr></tbody></table> <p><a name="minus"></a></p> <h2 id="minus-⇒-number"><a href="#minus-⇒-number" aria-hidden="true" class="header-anchor">#</a> minus ⇒ <code>Number</code></h2> <p>减</p> <p><strong>Kind</strong>: global variable</p> <table><thead><tr><th>Param</th> <th>Type</th> <th>Description</th></tr></thead> <tbody><tr><td>num</td> <td><code>Number</code> | <code>String</code></td> <td></td></tr> <tr><td>d</td> <td><code>Number</code></td> <td>小数位</td></tr></tbody></table> <p><a name="mul"></a></p> <h2 id="mul-⇒-number"><a href="#mul-⇒-number" aria-hidden="true" class="header-anchor">#</a> mul ⇒ <code>Number</code></h2> <p>乘</p> <p><strong>Kind</strong>: global variable</p> <table><thead><tr><th>Param</th> <th>Type</th> <th>Description</th></tr></thead> <tbody><tr><td>num</td> <td><code>Number</code> | <code>String</code></td> <td></td></tr> <tr><td>d</td> <td><code>Number</code></td> <td>小数位</td></tr></tbody></table> <p><a name="div"></a></p> <h2 id="div-⇒-number"><a href="#div-⇒-number" aria-hidden="true" class="header-anchor">#</a> div ⇒ <code>Number</code></h2> <p>除</p> <p><strong>Kind</strong>: global variable</p> <table><thead><tr><th>Param</th> <th>Type</th> <th>Description</th></tr></thead> <tbody><tr><td>num</td> <td><code>Number</code> | <code>String</code></td> <td></td></tr> <tr><td>d</td> <td><code>Number</code></td> <td>小数位</td></tr></tbody></table> <p><a name="askYu"></a></p> <h2 id="askyu-⇒-number"><a href="#askyu-⇒-number" aria-hidden="true" class="header-anchor">#</a> askYu ⇒ <code>Number</code></h2> <p>取余</p> <p><strong>Kind</strong>: global variable</p> <table><thead><tr><th>Param</th> <th>Type</th></tr></thead> <tbody><tr><td>num</td> <td><code>Number</code> | <code>String</code></td></tr></tbody></table></div> <div class="page-edit"><!----> <!----></div> <div class="page-nav"><p class="inner"><span class="prev">
        ←
        <a href="/tools/ext/date.html" class="prev">
          日期
        </a></span> <span class="next"><a href="/tools/ext/object.html">
          对象
        </a>
        →
      </span></p></div> </div> <!----></div></div>
    <script src="/tools/assets/js/10.7f3024d4.js" defer></script><script src="/tools/assets/js/app.a1269b41.js" defer></script>
  </body>
</html>
